Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

<Subscription /> <Query /> & <Mutation /> consume the apollo client the same way. #1956

Merged

Conversation

quentin-
Copy link
Contributor

@quentin- quentin- commented Apr 30, 2018

👋,

This PR:

  • marks the client optional in both context and props in all three component
  • update the client correctly when props are updated.
  • always use the prop client over the context
  • throw error if no client

Checklist:

  • Make sure all of the significant new logic is covered by tests

@quentin- quentin- changed the title Mark Query context client as optional and always use props client ove… Consolidate how <Query /> and <Mutation /> fetch the apollo client from Jun 2, 2018
@quentin- quentin- changed the title Consolidate how <Query /> and <Mutation /> fetch the apollo client from <Subscription /> <Query /> & <Mutation /> consume the apollo client the same way. Jun 8, 2018
@hwillson hwillson mentioned this pull request Jun 21, 2018
3 tasks
@hwillson hwillson self-assigned this Jun 21, 2018
Copy link
Member

@hwillson hwillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @quentin-! We should be all set here - LGTM!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants